import re

class get_int_array:
	def __init__(self,line):
		self.line = line

	def get_int(self):
		r1 = re.compile('([0-9]{1,3})')
		array= re.findall(r1,self.line)
		return map(int,array)
		
class Cal_file:
	def __init__(self):
		self.pathname = raw_input("pathname  (present file input 'enter return')  :")
		if self.pathname == None:
			self.pathname = "./"
		self.filename = raw_input("filename: ")

	def read_file(self):
		array_content= []
		self.file_object = open (self.pathname+self.filename,"r")
		for line in self.file_object:
			cal = get_int_array(line)
			array_content.append(cal.get_int())
		self.close()
		return array_content
	def close(self):
		self.file_object.close()


